﻿@model KPIS.GERP.Models.ICM.MasUnit

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
@Html.HiddenFor(model => model.UnitId)
}
@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)
@Html.HiddenFor(model => model.Sign)
@Html.HiddenFor(model => model.Code)

<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลหลัก</h4>
    </div>
	<div class="widget-body">
		<div class="widget-body-inner">
			<div class="widget-main">
				<div class="control-group">
					<div class="control-label">
						@Html.DisplayNameFor(model => model.Name)
					</div>
					<div class="controls">
						@Html.EditorFor(model => model.Name)
						@Html.ValidationMessageFor(model => model.Name)
					</div>            
				</div>
				@*<div class="control-group">
					<div class="control-label">
						@Html.DisplayNameFor(model => model.Sign)
					</div>
					<div class="controls">
						@Html.EditorFor(model => model.Sign)
						@Html.ValidationMessageFor(model => model.Sign)
					</div>            
				</div>*@
				<div class="control-group">
					<div class="control-label">
						@Html.DisplayNameFor(model => model.Descr)
					</div>
					<div class="controls">
						@Html.EditorFor(model => model.Descr, "TextArea")
						@Html.ValidationMessageFor(model => model.Descr)
					</div>
				</div>
			</div>
		</div>
	</div> 
</div>
